<template>
  <div class="hm-navbar" @click="fn">
    <div class="left">{{ title }}</div>
    <div class="center">{{ content }}</div>
    <div class="right">
      <i class="iconfont iconjiantou1"></i>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    },
    content: String
  },
  methods: {
    fn() {
      this.$emit('click')
    }
  }
}
</script>

<style scoped lang='less'>
.hm-navbar {
  height: 50px;
  line-height: 50px;
  border-bottom: 1px solid #ccc;
  margin-left: 20px;
  display: flex;
  .left {
    flex: 2;
  }
  .center {
    flex: 7;
    text-align: right;
    color: #999;
  }
  .right {
    flex: 1;
    text-align: center;
  }
}
</style>